package routers

import (
	beego "github.com/beego/beego/v2/server/web"
	"studios/controllers"
)

func init() {
	beego.Router("/", &controllers.MainController{})
	beego.Router("/login", &controllers.UserController{}, "POST:Login")
	beego.Router("/upload", &controllers.StudiosController{}, "POST:Upload")
	beego.Router("/add", &controllers.StudiosController{}, "POST:Add")
	beego.Router("/list", &controllers.StudiosController{}, "GET:List")
	beego.Router("/show", &controllers.StudiosController{}, "GET:Show")
	beego.Router("/rank", &controllers.StudiosController{}, "GET:Rank")
}
